        const unlogin=document.querySelector('#un-login')
        const islogin=document.querySelector('#is-login')
        const us=document.querySelector('#is-login b') 
        const logout=document.querySelector('#logout') 
        // const username=utils.getCookie('name')
        console.log(unlogin,islogin)
        if(username){
            unlogin.classList.add('hide')
            islogin.classList.remove('hide')
            us.innerHTML=username
        }
        logout.addEventListener('click',function(){
            if(confirm('你确定退出吗？')){
                utils.setCookie('name','',{expires:-1,path:'/'})
                unlogin.classList.remove('hide')
                islogin.classList.add('hide')
                location.replace('http://localhost:8080/Bootstrap_shop/') 
            }
        })